<?php namespace App\Admin\Storefront\Schedule;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'storefront_schedule_goods';
    protected $primaryKey = 'id';

    public function storefront(){
        return $this->belongsTo('App\Admin\Storefront\Storefront\Model', 'storefront_id', 'id');
    }

    public function cabinet(){
        return $this->belongsTo('App\Admin\Cabinet\Cabinet\Model', 'cabinet_id', 'id');
    }
}